package com.gzq.AbstractFactoryPattern;

public class ClientAbstractFactoryPattern {

    public static void main(String[] args) {
        HumanFactory manhumanFactory = new ManHumanFactory();
        HumanFactory womanHumanFactory = new WomanHumanFactory();

        HumanProduct yellowHumanProduct = manhumanFactory.createYellowHumanProduct();
        yellowHumanProduct.color();
        yellowHumanProduct.sex();
        System.out.println("------------------------------");
        HumanProduct blackHumanProduct = womanHumanFactory.createBlackHumanProduct();
        blackHumanProduct.color();
        blackHumanProduct.sex();


    }

}
